package feng.demo.dao;

import feng.demo.entity.Breed;
import feng.demo.entity.Breeds;
import feng.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BreedDao {
    List<Breed>findAll();
    Breed findById(Integer breedid);
     int add(Breed breed);
     int del(Integer breedid);
     int update(Breed breed);
    List<Breed> findBreed(Map<String,Object> map);
    List<Breeds> findAlls();
    List<Breeds> findAllsLimit(@Param("pagenum") Integer pagenum, @Param("lines")Integer lines);
    int findCount();
}
